﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_Links : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ShowData();
        }
    }
    protected void ShowData()
    {
        string where = " mulu_name='友情链接' ";
        Forum.Entities.forum_muluinfo model = WebBase.CacheRepository.forum_mulu.Get(where);
        if (model != null)
        {
            where = "body_muluid=" + model.MuLu_ID.ToString();
            this.Repeater1.DataSource = WebBase.CacheRepository.forum_body.GetPaged(where, " body_id asc ", 0, 11);
            this.Repeater1.DataBind();
        }
    }
}
